package com.grm.juc.j01_xianchengjichu;

/**
 * desc: 创建线程方式1_继承Thread类
 *
 * @author gaorimao
 * @since 2022-09-01 10:50:00
 */
public class MyThread extends Thread {
    @Override
    public void run() {
        String threadName = Thread.currentThread().getName();
        System.out.println(threadName);
    }

    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.start();
    }
}
